/*
 * MapObject.cpp
 *
 *  Created on: Jun 20, 2012
 *      Author: The Almighty Eric
 */

#include "MapObject.h"

MapObject::MapObject()
{
	s = Sprite(0, 0, 0, 0, 0, NULL);
	flipvert = fliphori = false;
}

MapObject::MapObject(int x, int y, int layer, int w, int h, SDL_Surface *image, std::string t, bool fv, bool fh)
{
	type = t;
	s = Sprite(x, y, layer, w, h, image);
	flipvert = fv;
	fliphori = fh;
}

void MapObject::flip(bool h, bool v)
{
	flipvert = v;
	fliphori = h;
}
